package com.decade.sp09.feign;

import com.decade.sp01.pojo.Order;
import com.decade.web.util.JsonResult;
import org.springframework.stereotype.Component;

/**
 * @Author: decade
 * @Description: 订单降级
 * @Date: 2021/1/20 16:07
 **/
@Component
public class OrderClientFB implements OrderClient{
    @Override
    public JsonResult<Order> getOrder(String orderId) {
        return JsonResult.err().msg("获取订单失败");
    }

    @Override
    public JsonResult addOrder() {
        return JsonResult.err().msg("添加订单");
    }
}
